<!DOCTYPE html>
<html lang="en">

    <head>
        <title>Online Used Car and Byke Classified</title>
        <meta charset="utf-8">
        <link href="<?= base_url(); ?>css/jqtransform.css" rel='stylesheet' type='text/css'>
        <link rel="stylesheet" type="text/css" media="screen" href="<?= base_url(); ?>css/style.css">

        <script type="text/javascript" src="<?= base_url(); ?>js/jquery-1.7.1.min.js"></script>
        <script type="text/javascript" src="<?= base_url(); ?>js/superfish.js"></script>
        <script type="text/javascript" src="<?= base_url(); ?>js/FF-cash.js"></script>
        <script type="text/javascript" src="<?= base_url(); ?>js/tabs.js"></script>
        <script type="text/javascript" src="<?= base_url(); ?>js/jquery.jqtransform.js" ></script>
        <script type="text/javascript" src="<?= base_url(); ?>js/easyTooltip.js" ></script>
        
        <script type="text/javascript" src="<?= base_url(); ?>js/location.js" ></script>
        <script type="text/javascript" src="<?= base_url(); ?>js/car.js" ></script>

        
        <script type="text/javascript">
            $(function(){
                
                $(".works-list a.tooltips").easyTooltip();
            });
        </script>

        <!--[if lt IE 7]>
   <div style=' clear: both; text-align:center; position: relative;'>
     <a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
       <img src="http://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
    </a>
  </div>
<![endif]-->
        <!--[if lt IE 9]>
                    <script type="text/javascript" src="js/html5.js"></script>
            <link rel="stylesheet" type="text/css" media="screen" href="css/ie.css">
            <![endif]-->
    </head>
    <body>
        <div class="main">
            <!--==============================header=================================-->
            <header>
                <?php include 'include/header.php'; ?>
            </header>
            <!--==============================content================================-->
            <section id="content">
                <div class="container_12">
                    <div class="wrapper marg_bottom_1">

                        <?php include 'include/top_car_search_used.php'; ?>
                        <!--grid_6 -->
                        <?php include 'include/grid_6.php'; ?>
                        <!--grid_6 -->
                    </div> 
                    <!-- PART TWO -->
                   
                    <div class="wrapper">
                        
                        <div class="grid_9">
                            <div class="box_2">
                               
                                <div class="title reg bold"> 
                                     
                                    <span class="inline-block fleft align_left">Recently Added Used Cars </span>
                                    
                                    <div class="clear"></div>
                                </div>
                                
                                 <?php if(isset($used_car)) {
                                 foreach($used_car as $used_car):    
                                 ?>
                                
                           
                                <div class="listing">
                                   
                                    <img src="<?= base_url(); ?>images/car/<?= $this->management_model->get_make('CAR',$used_car->make)->image; ?>?>" width="100" height="75" alt="">
                                    <div id="block">
                                        <h2> <?= $this->management_model->get_make('CAR',$used_car->make)->make; ?>:<?= $this->management_model->get_model('CAR',$used_car->model)->model; ?></h2>
                                        <p class="font_2"><?= $used_car->comments;?></p>
                                        <strong class="color_4"><?= $this->location_model->get_state_name($used_car->state); ?>, <?= $this->location_model->get_city_name($used_car->city); ?></strong> <br>
                                        <strong> 
                                            <span class="color_2" style="margin-right: 25px">Year : <?= $used_car->make_year;?></span>   
                                        </strong> <br>
                                    </div>
                                    <span id="price"><?= $used_car->price;?></span>
                                </div>
                                <?php endforeach; } ?>
                               <div class="clear"></div>
                            </div>
                            
                        </div>
                        
                        <!--grid_9 -->
                        <?php include 'include/right.php'; ?>
                        <!--grid_9 end -->
                    </div> <!-- END OF PART TWO -->
                </div>
            </section>
            <!--==============================footer=================================-->
            <footer>
                <?php include 'include/footer.php'; ?>
            </footer>
        </div><!--MAIN -->




    </body>
</html>